//
//  CSXMLNode.h
//  cactus-xml
//
//  Created by Yury Nikalayuk on 11.06.10.
//  Copyright 2011 CactusSoft. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface CSXMLNode : NSObject {
	NSString *name;
	NSString *value;
	NSMutableDictionary *attributes;
	NSMutableArray *children;
}
@property(readonly) NSString *name;
@property(readwrite, retain) NSString *value;
@property(readwrite, retain) NSMutableDictionary *attributes;
@property(readwrite, retain) NSMutableArray *children;

-(id) initWithName:(NSString *)name;

-(CSXMLNode *) child:(NSString *)childName;
-(NSString *) attribute:(NSString *)attributeName;

@end
